package com.jeecg.minidao.aop;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;

import com.jeecg.minidao.aspect.EmptyInterceptor;
import com.jeecg.minidao.pojo.MiniDaoPage;

public class MiniDaoHandler implements InvocationHandler{
	
	private static final Logger logger = Logger.getLogger(MiniDaoHandler.class);
	
	@Autowired
	private JdbcTemplate jdbcTemplate;
	@Autowired
	private NamedParameterJdbcTemplate namedParameterJdbcTemplate;
	
	private String UPPER_KEY = "upper";
	private String LOWER_KEY="lower";
	
	private String keyType="origin";
	
	private boolean formatSql = false;
	
	private boolean showSql = false;
	
	private String dbType;
	
	
	private EmptyInterceptor emptyInterceptor;
	
	
	
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

		Object returnObj = null;
		String templateSql = null;
		Map<String, Object> sqlParamsMap = new HashMap<String, Object>();
		
		//MiniDaoPage<T>
		
		
		
		
		
		
		return null;
	}
	
}
